package com.kelan.android.app.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kelan.android.app.config.DSEnum;
import com.kelan.android.app.config.DataSource;
import com.kelan.android.app.entity.DrListEntity;
import com.kelan.android.app.mapper.DrListMapper;

@Service
public class DrListServiceImpl implements DrListService {

	@Autowired
	private DrListMapper drMapper;
	
	@Override
	@DataSource(name = DSEnum.DATA_SOURCE_TH)
	public List<DrListEntity> selectDrList(DrListEntity drListEntity) {
		//查询双随机展示数据然后修改变更中对应的监管范围和对应区域
		return drMapper.selectDrList(drListEntity);
	}

	@Override
	@DataSource(name = DSEnum.DATA_SOURCE_TH)
	public DrListEntity selectDrById(String id) {
		return drMapper.selectDrById(id);
	}

	@Override
	@DataSource(name = DSEnum.DATA_SOURCE_TH)
	public int editDr(DrListEntity drListEntity) {
		return drMapper.editDr(drListEntity);
	}

}
